<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="../common.inc" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="./js/FusionCharts.js"></script>
<script language="JavaScript" src="./js/sale-monitor.js"></script>
<script type="text/javascript" src="./js/form.js"></script>
<script type="text/javascript" language="javascript">
		function pageCustomer(flag){
		document.newsNoticeForm.action = "./manageReport.do?action=getLinkManMailInfo&flag="+flag;
		document.newsNoticeForm.target = "main";
		document.newsNoticeForm.submit();
		}
		function out(){
			document.newsNoticeForm.action = "./manageReport.do?action=outTxtForLinkManMail";
			document.newsNoticeForm.target = "main";
			document.newsNoticeForm.submit();
		}
		function back(){
			window.location.href = "./manageReport.do";
			window.location.target = "main";
		}
		function createReport(){
			
			document.newsNoticeForm.action = "./manageReport.do?action=getLinkManMailInfo";
			document.newsNoticeForm.target = "main";
			document.newsNoticeForm.submit();
			
		}
		function aaa(aaa){
			window.location.href = aaa;
			window.location.target = "main";
			}
</script>
</head>
<body>
<form action="" name="newsNoticeForm" method="post">
<table class="table_frame">
		<tr>
			<td>
				<table class="table_title2">
					<tr>
						<td>
							<table cellpadding="0" cellspacing="0" width="100%" height="100%">
								<tr>
									<td class="title_lab">分析报表</td>
									<td align="left">&nbsp;&nbsp;快速查看：
									<select onchange="aaa(this.options[this.selectedIndex].value);">
									<option>-------------请选择-------------</option>
									<option value="./manageReport.do?action=preSalePeriodReport">销售周期分析表</option>
									<option value="./manageReport.do?action=saleMonthReport">销售月度统计表</option>
									<option value="./manageReport.do?action=allCustomerDevoteAnalysis">客户贡献统计表</option>
									<option value="./manageReport.do?action=oldCustomerDevoteAnalysis">老客户贡献分析表</option>
									<option value="./manageReport.do?action=marketExpandsAnalysis">市场开拓同步分析表</option>
									<option value="./manageReport.do?action=annualWreathCompares">年度环比分析表</option>
									<option value="./manageReport.do?action=getLinkManMailInfo">联系人邮件列表</option>
									<option value="./manageReport.do?action=CustomerStatisticContract">按客户统计合同</option>
									<option value="./manageReport.do?action=saleStatisticContract">按销售统计合同</option>
									
									</select></td>
								</tr>
							</table>
						</td>
					</tr>
								
					<tr><td style="height: 55px;text-align: center;font-weight: bold;font-size: 24px;">联系人邮件列表</td></tr>
						<tr>
						<td>
							<table align="center" class="table_report1">
										
										<tr>
											<td class="title" align="right"><!-- 行业 -->
												<c:choose>
													<c:when test="${language == 2}">${records['110'].currentRecordEn}：</c:when>
													<c:otherwise>${records['110'].currentRecord}：</c:otherwise>
												</c:choose>
												
											</td>
											
											<td width="">
												<select id="industryId" name="industryId" onchange="industryChangeEdit(this)">
													<option value="" <c:if test='${customer.industryId == 0}'>selected</c:if> >----默认全部----</option>
													<c:forEach var="range" items="${ranges['110']}">
													<option value="${range.id}" <c:if test='${customer.industryId == range.id}'>selected</c:if> >${range.rangeValue}</option>
													</c:forEach>
												</select>
												
											</td>
											<td class="title" align="right"><!-- 企业类型 -->
												<c:choose>
													<c:when test="${language == 2}">${records['113'].currentRecordEn}：</c:when>
													<c:otherwise>${records['113'].currentRecord}：</c:otherwise>
												</c:choose>
											
											</td>
											<td width="" >
												<select id="companyTypeId" name="companyTypeId">
													<option value="" <c:if test='${customer.companyTypeId == 0}'>selected</c:if> >----默认全部----</option>
													<c:forEach var="range" items="${ranges['113']}">
													<option value="${range.id}" <c:if test='${customer.companyTypeId == range.id}'>selected</c:if> >${range.rangeValue}</option>
													</c:forEach>
												</select>
												
											</td>
										</tr>
										
										<tr>
											<td class="title" align="right"><!-- 区域 -->
												<c:choose>
													<c:when test="${language == 2}">${records['111'].currentRecordEn}：</c:when>
													<c:otherwise>${records['111'].currentRecord}：</c:otherwise>
												</c:choose>
												
											</td>
											<td width="">
												<select id="areaId" name="areaId">
													<option value="" <c:if test='${customer.areaId == 0}'>selected</c:if> >----默认全部----</option>
													<c:forEach var="range" items="${ranges['111']}">
													<option value="${range.id}" <c:if test='${customer.areaId == range.id}'>selected</c:if> >${range.rangeValue}</option>
													</c:forEach>
												</select>
												
											</td>
											
										</tr>
										
							</table>
						</td>
					</tr>
					<tr>
						<td align="center">
							<table class="table_report1" cellpadding="0" cellspacing="0" height="100%" style="width: 95%;">
								<tr>
									<td align="center" height="30">
										<input class="btn_report" type="button" value="" onclick="createReport()"/>
										<input class="btn_back" type="button" value="导出TXT" onclick="out()" >&nbsp;&nbsp;
										<button class="btn_back" onclick="back()" hidefocus="true">返回</button>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td align="center">
							<table class="table_sreport" style="width: 95%;">
								<tr>
									<td class="title">客户名称</td>
									<td class="title">职位</td>
									<td class="title">姓名</td>
									<td class="title">手机</td>
									<td class="title">电子邮件</td>
								</tr>
								<c:forEach items="${report}" var="item">
								<tr>
									<td>${item.customerName }</td>
									<td>${item.linkmanDuty }</td>
									<td>${item.linkmanName }</td>
									<td>${item.mobile }</td>
									<td>${item.email }</td>
								</tr>
								</c:forEach>
							</table>
							</td>
					</tr>
					<tr>
						<td align="center">
							<table class="table_page" style="width: 95%;text-align: left;">
								<tr>
									<td>&nbsp;&nbsp;
										<img src="./images/frist.bmp" onclick="pageCustomer(1)" alt="首页" style="vertical-align: middle;cursor: hand;">
										<img src="./images/last.bmp" onclick="pageCustomer(2)" alt="上一页" style="vertical-align: middle;cursor: hand;">&nbsp;
										<font color="red">${currentPage}</font>/${totalPages}&nbsp;<fmt:message key='common.page'/>&nbsp;
										<img src="./images/next.bmp" onclick="pageCustomer(3)" alt="下一页" style="vertical-align: middle;cursor: hand;">
										<img src="./images/end.bmp" onclick="pageCustomer(4)" alt="末页" style="vertical-align: middle;cursor: hand;">
										共&nbsp;&nbsp;${totalRows}&nbsp;<fmt:message key='common.page.totalRow'/>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
							
							
</form>
</body>
</html>